﻿using System.Text.RegularExpressions;
using EzDesk.DevHelper.DbMgr.FeedStudio;


namespace EzDesk.DevHelper.DbMgr.ToEzLanguage
{
    public class ReplaceTextProcessor : EzMLProcessor
    {
        public override string Process(string input)
        {
            string regexPattern = "{(?<content>.*?)}";
            var output = input;

            output = Regex.Replace(output, regexPattern, "||${content}||");
            output = output.Replace("||", "$");
            
            return output;
        }
    }
}
